package com.day0422.AnimalTest;/*
 * @创建者：黄苟苟
 * @创建时间：2021/4/23   15:14
 * @Description描述
 **/

 public class Food {
    private String name;
    public void showName(){
        System.out.println("食物");
    }

     @Override
     public String toString() {
         return super.toString();
     }
 }
  class Fish extends Food{
     @Override
     public void showName() {
         System.out.print("鱼");;
     }
 }
 class Bone extends Food{
     @Override
     public void showName() {
         System.out.print("骨头");
     }
 }
